import Vue                        from 'vue'
import VueRouter, { RouteConfig } from 'vue-router'
import Login                      from '../views/Login.vue'
import trueName                   from '../views/trueName.vue'
import register 				  from '../views/register.vue'
import Find 					  from '../views/find.vue'
import SetPas 					  from '../views/setPas.vue'
import Minnum 				      from '../views/minnum.vue'
import Changenum 				  from '../views/changenum.vue'
import Changeps 				  from '../views/changeps.vue'
import Truenamedetail   		  from '../views/truenamedetail.vue'
import Indexs                      from '../views/index.vue'
import Person                     from '../views/person.vue'
import Edit                       from '../views/edit.vue'
import Health                     from '../views/health.vue'
import HealthEdit                 from '../views/healthedit.vue'
import Education                  from '../views/education.vue'
import Educationdel               from '../views/educationdel.vue'

Vue.use(VueRouter)

const routes: Array<RouteConfig> = [
  {
    path: '/',
    name: 'Login',
    component: Login
  },
  {
    path: '/login',
    name: 'Login',
    component: Login
  },
  {
	path:'/truename',
	name:'trueName',
	component:trueName
  },
  {
	path:'/register',
	name:'register',
	component:register
  },
  {
  	path:'/find',
  	name:'Find',
  	component:Find
  },
  {
  	path:'/setpas',
  	name:'SetPas',
  	component:SetPas
  },
  {
  	path:'/changenum',
  	name:'Changenum',
  	component:Changenum
  },
  {
  	path:'/changeps',
  	name:'Changeps',
  	component:Changeps
  },
  {
  	path:'/minnum',
  	name:'Minnum',
  	component:Minnum
  },
  {
  	path:'/truenamedetail',
  	name:'Truenamedetail',
  	component:Truenamedetail
  },
  {
	path:'/indexs',
	name:'Indexs',
	component:Indexs  
  },
  {
	path:'/person',
	name:'Person',
	component:Person
  },
  {
  	path:'/edit',
  	name:'Edit',
  	component:Edit
  },
  {
  	path:'/health',
  	name:'Health',
  	component:Health
  },
  {
  	path:'/healthedit',
  	name:'HealthEdit',
  	component:HealthEdit
  },
  {
	path:'/education',
	name:'Education',
	component:Education
  },
  {
  	path:'/educationdel',
  	name:'Educationdel',
  	component:Educationdel
  }
  
  
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
